<template>
  <div>
    <!-- 统计和清空 -->
    <footer class="footer">
      <!-- 统计 -->
      <span class="todo-count"
        >合 计:<strong> {{ list.length }} </strong></span
      >
      <!-- 清空 -->
      <button class="clear-completed" @click="clear">清空任务</button>
    </footer>
  </div>
</template>
<script>
export default {
  name: 'TodoFooter',
  props: {
    list: Array
  },
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    clear(){
      this.$emit('clear')
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
